package com.artic.base.xml;


/**
 * This factory must be capable of creating xml streams.
 * @author aczarnik 
 */

public class XMLStreamFactory {
	/** 
	 * reference to the singleton instance. 
	 */
	private static XMLStreamFactory instance = null;

	/** 
	 * singleton constructor. 
	 */
	private XMLStreamFactory() {
	}

	/** 
	 * point of access to the singleton instance. 
	 * 
	 * @return a instance of <code>XMLStreamFactory</code>  
	 */
	public static XMLStreamFactory getInstance() {
		if (instance == null) {
			instance = new XMLStreamFactory();
		}
		return instance;
	}

	/**
	 * 
	 * @return
	 */
	public XMLJaxbReader getReader() {
		return new XMLJaxbReader();
	}

}
